from ronglian_sms_sdk import SmsSDK

accId = '2c94811c93863e4f0193f68f8b6916c2'
accToken = '86c061488d474726b13861019ba8c0d8'
appId = '2c94811c93863e4f0193f68f8cf816c9'

def send_message(mobile,code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = mobile
    datas = (code,)
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp

# send_message('15647150284','8888')